'''
Created on 11.1.2012

@author: mphkh
'''
from CashFlowUtils.IceBonds import *
from Calendar.Iceland import *
from datetime import date
from datetime import timedelta

ddate = date(2012,1,12)

yld = 0.0183
sec1 = RIKS210414()
dirty1 = sec1.dirtyprice(ddate, yld)
clean1 = sec1.cleanprice(ddate, yld)
dirty2 = sec1.cleantodirty(ddate, clean1)


print dirty1
print clean1
print dirty2

yld = 0.0176
sec1 = RIKS210414()
dirty1 = sec1.dirtyprice(ddate, yld)
clean1 = sec1.cleanprice(ddate, yld)
dirty2 = sec1.cleantodirty(ddate, clean1)

print dirty1
print clean1
print dirty2
